Repository navigation
Bound dashboard runtime events before RPC serialization - #452
Conversation
Implementation PlanProblem analysisThe quadratic pipe cost is fully mapped from code evidence:
Stripping is safe (verified against all consumers):
Deliverables1. Dashboard-mode projection before serialization (coding-agent)
2. Bounded stdout backpressure (
3. Regression tests (mandatory, not deferred)
4. Documentation
Files to create or modify
Acceptance criteria mapping
Risks and open questions
Plan created by mach6 |
Vitest coverage
|
Progress UpdateImplementation of the plan is complete and verified. Changes:
Tests (24 new, all passing):
Verification: full monorepo build clean; full test suite green (4,930 passed, 0 failed); workspace links healthy; biome clean. Live binary QA on the built CLI: with Commit: Progress tracked by mach6 |
Code ReviewCriticalNone. ImportantNone. Suggestions
Strengths
Agents run: code-reviewer, error-auditor, test-reviewer, completeness-checker, simplifier Reviewed by mach6 |
Review AssessmentClassifications
Action Plan
Assessment by mach6 |
Progress UpdateAddressed genuine review findings 2 and 3:
Verification passed: focused output-guard tests, full test suite, Biome, full monorepo build, workspace-link verification, and diff checks. Commit: Progress tracked by mach6 |
Code ReviewCriticalNone. ImportantNone. Suggestions
Strengths
Agents run: code-reviewer, error-auditor, test-reviewer, completeness-checker, simplifier Reviewed by mach6 |
Review AssessmentClassifications
Action Plan
Deferred Follow-up
Assessment by mach6 |
Progress UpdateAddressed genuine review finding 1:
Verification passed: Biome, focused output-guard tests, full monorepo build, full test suite, workspace-link verification, diff checks, and commit hooks (5,586 passed, 0 failed). Commit: Progress tracked by mach6 |
Code ReviewCriticalNone. ImportantNone. Suggestions
Strengths
Agents run: code-reviewer, error-auditor, test-reviewer, completeness-checker, simplifier Reviewed by mach6 |
Review AssessmentClassifications
Action Plan
Deferred Follow-up
Assessment by mach6 |
Progress UpdateAddressed genuine review finding 2:
Commit: Progress tracked by mach6 |
* chore: open PR for issue 448 * Bound dashboard runtime events before RPC serialization * Fix stdout backpressure review findings * Fix oversized stdout frames * Fix oversized frame queue cap regression * chore: bump version to 2.55.5
Closes #448
High-rate model events carry cumulative assistant state (
message,assistantMessageEvent.partial) across the internal dreb-child RPC JSONL pipe before the dashboard's EventHub projection runs, causing quadratic serialization and unbounded stdout queuing (observed: 6,401 events in a 3-second end-of-response burst). This PR projects dashboard-specific streaming events before RPC JSONL serialization (gated on--ui dashboard) and makes the child stdout queue explicitly bounded with backpressure handling.Implementation plan posted as a comment below.